package com.lpc.carinfo.util;

import android.util.Log;


/**
 * Created by lpc on 2017/1/1.
 */

public class LogUtil {

    private static final String TAG = "lpc_log";

    private static final boolean isDebug = true;

    private LogUtil() {
        throw new UnsupportedOperationException("u can't instantiate me...");
    }

    /**
     * show error note
     *
     * @param error
     */
    public static void e(String error) {

        if (isDebug) {
            Log.e(TAG, "--->" + error);
        }
    }


    public static void e(String tag, String error) {
        if (isDebug) {
            Log.e(tag, "--->" + error);
        }
    }

    /**
     * show info note
     *
     * @param infor
     */
    public static void i(String infor) {

        if (isDebug) {
            Log.i(TAG, "--->" + infor);
        }
    }

    public static void i(String tag, String infor) {
        if (isDebug) {
            Log.i(tag, "--->" + infor);
        }
    }

    /**
     * show debug note
     *
     * @param infor
     */
    public static void d(String infor) {

        if (isDebug) {
            Log.d(TAG, "--->" + infor);
        }
    }

    public static void d(String tag, String infor) {
        if (isDebug) {
            Log.d(tag, "--->" + infor);
        }
    }
}
